
<html>
<head>
<meta charset="UTF-8">
<title>条目关联选项信息</title>
<link href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-view.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">
	<div data-options="region:'north',split:false" style="height:165px">
		<form id="ff" method="post">
			<br>
			<table class="esaas-info-view-table">
				<tr>
					<td width="15%" align="right">选项代码：</td>
					<td width="35%"><input class="easyui-textbox" type="text"
						name="dictCode" id="dictCode" data-options="required:true" disabled
						style="width: 100%; height: 25px;"></input></td>
					<td width="15%" align="right">选项名称：</td>
					<td width="35%"><input class="easyui-textbox" type="text" disabled
						name="dictName" id="dictName" data-options="required:true"
						style="width: 100%; height: 25px;"></input>
						<input type="hidden" name="dictId" id="dictId">
					</td>
				</tr>
				<tr>
					<td width="15%" align="right">选项类型：</td>
					<td width="35%"><select class="easyui-combobox" id="dictType" disabled
						name="dictType" style="width: 100%; height: 25px;"
						data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:DM_DICT_TYPE"></select></td>
					<td width="15%" align="right">是否国际：</td>
					<td width="35%"><select class="easyui-combobox" id="dictIsStd"
						name="dictIsStd" style="width: 100%; height: 25px;" disabled
						data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:STD_PUB_YN"></select>
					</td>
				</tr>
	    		<tr>
	    			<td width="15%" align="right">所属主题：</td>
	    			<td width="35%"><input class="easyui-textbox" type="text" disabled name="subjectId" data-options="required:false" style="width:100%;height:25px;"></input></td>
	    			<td width="15%" align="right"></td>
	    			<td width="35%">
	    			</td>	    			
	    		</tr>				
				<tr>
					<td width="15%" align="right" valign="top">选项描述：</td>
					<td colspan="3"><textarea name="dictRemarks" id="dictRemarks" disabled
							class="easyui-validatebox"
							style="overflow-x: hidden; height: 45px; width: 99%;"></textarea>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div data-options="region:'center',split:false">
		<table id="dg" class="easyui-datagrid" title=""
			style="width: 100%; height: 100%"
			data-options="singleSelect:true,collapsible:true,url:'../../api/dict/option/enums?dictId=' + $.getUrlParam('dictId') ,method:'post'"
			title="Load Data" rownumbers="true" pagination="true"
			pageSize="20">
			<thead>
				<tr>					
					<th data-options="field:'optionCode'" width="16%">选项值</th>
					<th data-options="field:'optionName'" width="20%">选项描述</th>
					<th data-options="field:'lastModifyUser'" width="10%">最近修改人</th>
					<th data-options="field:'lastModifyTime'" width="15%">最近修改时间</th>
					<th data-options="field:'optionRemarks'" width="35%">备注</th>
				</tr>
			</thead>
		</table>	
	</div>
	<script>	
		$(function() {
			var dictId = $.getUrlParam('dictId');
			$.restfulGet('../../api/dict/option/info/' + dictId,null,function(data){
					$('#ff').form('load', {
						dictId : data.rows.dictId,
						dictCode : data.rows.dictCode,
						dictName : data.rows.dictName,
						dictType : data.rows.dictType,
						dictSrc : data.rows.dictSrc,
						dictIsStd : data.rows.dictIsStd,
						refCount : data.rows.refCount,
						subjectId : data.rows.subjectId,
						dictRemarks : data.rows.dictRemarks,
						createUser : data.rows.createUser,
						createTime : data.rows.createTime,
						lastModifyUser : data.rows.lastModifyUser,
						lastModifyTime : data.rows.lastModifyTime
					});					
			});
		});
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>
